﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
	/// <summary>
	/// 后裔转种
	/// </summary>
	public interface IDescendantTransferRepository
	{
		/// <summary>
		/// 获取后裔转种列表
		/// </summary>
		/// <returns></returns>
		Task<IQueryable<Descendanttransfer>> GetDescendanttransfers();
		/// <summary>
		/// 删除
		/// </summary>
		/// <param name="loginId"></param>
		/// <param name="idList"></param>
		/// <returns></returns>
		Task<int> DelDescendanttransfer(string loginId, params string[] eartag);
		/// <summary>
		/// 添加后裔转种
		/// </summary>
		/// <param name="entity"></param>
		/// <returns></returns>
		Task<int> AddDelDescendanttransfer(List<Descendanttransfer> entity);
		/// <summary>
		/// 反填后裔转种
		/// </summary>
		/// <param name="eartag"></param>
		/// <returns></returns>
		Task<Descendanttransfer> DetaileDescendanttransfer(string eartag);
		/// <summary>
		/// 修改后裔转种
		/// </summary>
		/// <param name="entity"></param>
		/// <returns></returns>
		Task<int> UpdateDescendanttransfer(Descendanttransfer entity);
	}
}
